02. Class Variables

Class Variables

INSTRUCTOR NOTE:

Around 0:40 or so, Kunal said with regard to the valid_ratings variable:

"…This is an array or a list…"

To avoid confusion down the road: Arrays and lists are actually not the same thing in Python. 99.9% of the time, you'll want to use lists. They're flexible, and good for pretty much every purpose.

However, there is also an array.array class in Python, which is essentially a thin wrapper on top of C arrays.

They're not something you'll probably need to use, but read more here if interested: http://www.wired.com/2011/08/python-notes-lists-vs-arrays/